#!/bin/sh
/home/student/bin/lilypond -fpng $1.ly
convert $1.png -trim ../Images/$1.png
/home/student/bin/lilypond -dbackend=svg $1.ly
# scala -classpath ../../scala-out:/home/kalvis/scala/lib/scala-library.jar lv.ante.songs.SvgTrimmer $1

mv $1.midi ../Music/
rm $1.png
rm $1.ps
rm $1.svg

gwenview ../Images/$1.png
